﻿@model Test.Models.SimpleModel
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>分页</title>
    <link rel="stylesheet" href="~/Content/bootstrap.min.css" />
    <script type="text/javascript" src="~/Scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap.min.js"></script>
</head>
<body>
    <div class="container">
        <h5>1.使用ViewModel方式</h5>
        <pre>@@Model</pre>
        @Model
        <h5>2.直接在View中使用</h5>
        <pre>@@(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size))</pre>
        @(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size))
        <h5>3.自定义显示:</h5>
        <pre>@@(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size,prev:"往前",next:"往后"))</pre>
        @(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size,prev:"往前",next:"往后"))
        <h5>4.自定义显示:使用basic模版</h5>
        <pre>@@(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size,template:"basic"))</pre>
        @(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size,template:"basic"))
        <h5>5.ASP.NET MVC:自定义BootStrap模版:</h5>
        <pre>@@(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size, template: "Paging", render: Html.Partial))</pre>
        @(new AspNetPaging.PagingModel(Model.Page, Model.Total, Model.Size, template: "Paging", render: Html.Partial))
    </div>
</body> 
</html>